import Vue from 'vue'
import App from './App.vue'
import router from './router'
import './plugins/element.js'

//引入全局的css样式
import './assets/globle.css'
//引入axios
import axios from 'axios'

//为axios 配置全局的根路径
axios.defaults.baseURL="http://localhost/"

//把axios挂在到vue中  把axios对象绑定到Vue的属性中，名称为$http
Vue.prototype.$http=axios;

Vue.config.productionTip = false

new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
